package com.woniuxy.controller;

import com.woniuxy.entity.Rbacmanager;
import com.woniuxy.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author：向天浩
 * @Date：2022/2/14 17:14
 * @Description :TODO
 */
@RestController
@RequestMapping("/mc")
public class MyController {
    @Autowired
    MyService myService;
    @GetMapping("/findid/{id}")
    public Rbacmanager findByid(@PathVariable int id) {
        Rbacmanager byId = myService.findById(id);
        return byId;
    }
}
